package com.haoshuang.zhouzhoubang.ui.dialog


import android.app.Activity
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import com.haoshuang.zhouzhoubang.R

import com.lxj.xpopup.core.BottomPopupView


class CheckDialog2(context: Context, private val onSubmit: (str: String) -> Unit) :
    BottomPopupView(context) {
    override fun getImplLayoutId(): Int = R.layout.dialog_check2

    override fun initPopupContent() {
        super.initPopupContent()
        var clGb = findViewById<ConstraintLayout>(R.id.clGb)
        var llGb = findViewById<LinearLayout>(R.id.llGb)
        clGb.setOnClickListener {
            dismiss()
        }
        llGb.setOnClickListener {

        }
        var tvTp = findViewById<TextView>(R.id.tvTp)
        var tvSp = findViewById<TextView>(R.id.tvSp)
        var tvCancle = findViewById<TextView>(R.id.tvCancle)
        tvCancle.setOnClickListener {
            dismiss()
        }
        tvTp.setOnClickListener {
            dismiss()

            onSubmit("0")
        }
        tvSp.setOnClickListener {
            dismiss()

            onSubmit("1")
        }
    }


}